//
//  SweetSectionViewController.m
//  CoolTennisBall
//
//  Created by 谢伟康 on 15/12/29.
//  Copyright © 2015年 CoolLang. All rights reserved.
//

#import "SweetSectionViewController.h"
#import "Triangle.h"

@interface SweetSectionViewController ()
@property (weak, nonatomic) IBOutlet Triangle *triangleView;
@property (weak, nonatomic) IBOutlet UILabel *explosivePowerLabel;
@property (weak, nonatomic) IBOutlet UILabel *enduranceLabel;
@property (weak, nonatomic) IBOutlet UILabel *intensityLabel;

@end

@implementation SweetSectionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configureLocalization];
    self.triangleView.shoot = self.shoot;
    self.triangleView.vatility = self.vatility;
    self.triangleView.strong = self.strong;
}

#pragma mark - Localization

- (void)configureLocalization
{
    self.explosivePowerLabel.text = NSLocalizedString(@"Explosive Power", nil);
    self.enduranceLabel.text = NSLocalizedString(@"Endurance", nil);
    self.intensityLabel.text = NSLocalizedString(@"Intensity", nil);
}

#pragma mark - IBAction
- (IBAction)clickToDismiss:(id)sender {
    [self dismissFromParentViewControllerWithAnimationType:DetailViewControllerAnimationTypeFade];
}

@end
